import localCache from "../utils/localCache";
import store from "../store/index";
const loadDataFromLocal = {
  install() {
    const userinfo = localCache.getCache("userinfo");
    console.log("读取本地存储", userinfo);
    if (userinfo) {
      store.dispatch("login/loginAction", userinfo);
    }
  },
};
export default loadDataFromLocal;
